package com.suyl.stater;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : suyl
 * @version : v1.0.0
 * @date : 2020/3/31 17:21
 * @descr : 自定义配置
 */
@Configuration
public class CoreConfig {

    @Bean
    @ConditionalOnProperty(name = "suyl.enabled", havingValue = "true", matchIfMissing = true)
    public User getUser() {
        return new User();
    }
}
